import {base64ToBlob, canvasToImage, download} from "../utils";
export default {
  click(){
    this.loading(true);
    this.restDraw()
    download(base64ToBlob(canvasToImage(this.canvas)), `${this.options.downloadTitle || '图片'}.png`)
    this.loading(false);
    this.restDraw(true)
  },
  canvasMousedown(e){},
  canvasMouseup(e){},
  canvasMouseout(e){},
  canvasTouchstart(e){},
  canvasTouchend(e){},
  winMouseup(){},
  winMousemove(e){},
  winTouchend(e){},
  visibilitychange(){}
}

